# -*- coding: utf-8 -*-
# @ Time   :  2020/7/24 17:30
# @ Author : Redtree
# @ File :  rst 
# @ Desc :DIR+ -data-tool


import pygame
import db

# 加载游戏资源
DIR = 'resup'
FTP = '.png'
k = pygame.image.load
TITLE = k(DIR+'/title'+FTP)
MOUSE = k(DIR+'/mouse'+FTP)
SEA = k(DIR+'/sea'+FTP)
P1B = k(DIR+'/p1b'+FTP)
P2B = k(DIR+'/p2b'+FTP)
PCB = k(DIR+'/pcb'+FTP)
PHB = k(DIR+'/phb'+FTP)
FIRE = k(DIR+'/fire'+FTP)
BFIRE = k(DIR+'/bfire'+FTP)
SMOKE = k(DIR+'/smoke'+FTP)
HUASHUIGUAI = k(DIR+'/huashuiguai'+FTP)
SHIP2 = k(DIR+'/ship2'+FTP)
SHIP3 = k(DIR+'/ship3'+FTP)
SHIP4 = k(DIR+'/ship4'+FTP)
SHIP5 = k(DIR+'/ship5'+FTP)
FCS = [HUASHUIGUAI,SHIP2,SHIP3,SHIP4,SHIP5]
BABA = k(DIR+'/baba'+FTP)
MAMA = k(DIR+'/mama'+FTP)
TALK = k(DIR+'/talk'+FTP)
BT_SETOVER = k(DIR+'/setover'+FTP)
BT_EXIT = k(DIR+'/exit'+FTP)
BATTLE1 = k(DIR+'/battle1'+FTP)
BATTLE2 = k(DIR+'/battle2'+FTP)
STAR = k(DIR+'/star'+FTP)
BULLET = k(DIR+'/bullet'+FTP)
DESTROY = k(DIR+'/destroy'+FTP)
HEMA = k(DIR+'/hema'+FTP)
BLT = k(DIR+'/blt'+FTP)
ANGRY = k(DIR+'/angry'+FTP)
VICTORY_BABA = k(DIR+'/victory_baba'+FTP)
VICTORY_MAMA = k(DIR+'/victory_mama'+FTP)
RESTART = k(DIR+'/restart'+FTP)


# 标题页面资源
TITLE_FONT = pygame.font.Font(DIR+'/msyh.TTF', 40)
TITLE_player_surface = TITLE_FONT.render('本地双人', True, db.COLOR_RGB_WHITE, None)
TITLE_computer_surface = TITLE_FONT.render('对抗AI', True, db.COLOR_RGB_WHITE, None)
TITLE_law_surface = TITLE_FONT.render('规则介绍', True, db.COLOR_RGB_WHITE, None)
TITLE_exit_surface = TITLE_FONT.render('退出游戏', True, db.COLOR_RGB_WHITE, None)


# 标题页面字体选中资源样式
TITLE_FONT_pos = pygame.font.Font(DIR+'/msyh.TTF', 50)
TITLE_player_surface_pos = TITLE_FONT_pos.render('激情火炮对抗', True, db.COLOR_RGB_YELLOW, None)
TITLE_computer_surface_pos = TITLE_FONT_pos.render('对战人工智障', True, db.COLOR_RGB_YELLOW, None)
TITLE_law_surface_pos = TITLE_FONT_pos.render('新手海盗快速入门', True, db.COLOR_RGB_YELLOW, None)
TITLE_exit_surface_pos = TITLE_FONT_pos.render('就这水平？', True, db.COLOR_RGB_YELLOW, None)


#爸爸部署语录
GAME_TALK_FONT = pygame.font.Font(DIR+'/msyh.TTF', 18)
STAGE1_P1_TALK1 = GAME_TALK_FONT.render('我是凯多，你的爸爸', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK2 = GAME_TALK_FONT.render('现在轮到你来部署我们的舰队', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK3 = GAME_TALK_FONT.render('鼠标左键选中/部署船只，右键切换船只摆向', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK4 = GAME_TALK_FONT.render('无法在这种位置部署，蠢货', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK5 = GAME_TALK_FONT.render('这是个好位置，孩子', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK6 = GAME_TALK_FONT.render('你太让我失望了= =', True, db.COLOR_RGB_BLACK, None)
STAGE1_P1_TALK7 = GAME_TALK_FONT.render('完成部署，奥利给！', True, db.COLOR_RGB_BLACK, None)
SPT1 = [STAGE1_P1_TALK1,STAGE1_P1_TALK2,STAGE1_P1_TALK3,STAGE1_P1_TALK4,STAGE1_P1_TALK5,STAGE1_P1_TALK6,STAGE1_P1_TALK7]
#爸爸开战语录
STAGE2_P1_TALK1 = GAME_TALK_FONT.render('左键点击战场发射炮弹', True, db.COLOR_RGB_BLACK, None)
STAGE2_P1_TALK2 = GAME_TALK_FONT.render('命中敌船可以再射一炮', True, db.COLOR_RGB_BLACK, None)
STAGE2_P1_TALK3 = GAME_TALK_FONT.render('击毁敌船可获得强化炮弹', True, db.COLOR_RGB_BLACK, None)
STAGE2_P1_TALK4 = GAME_TALK_FONT.render('你不配当我儿子', True, db.COLOR_RGB_BLACK, None)
SPT1F =[STAGE2_P1_TALK1,STAGE2_P1_TALK2,STAGE2_P1_TALK3,STAGE2_P1_TALK4]
#妈妈部署语录
STAGE1_P2_TALK1 = GAME_TALK_FONT.render('孩子，我是你的大妈妈，', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK2 = GAME_TALK_FONT.render('现在轮到你来部署我们的舰队', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK3 = GAME_TALK_FONT.render('鼠标左键选中/部署船只，右键切换船只摆向', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK4 = GAME_TALK_FONT.render('这个地方不能部署，宝贝', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK5 = GAME_TALK_FONT.render('这是个好位置，孩子', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK6 = GAME_TALK_FONT.render('逃跑是可耻的= =', True, db.COLOR_RGB_BLACK, None)
STAGE1_P2_TALK7 = GAME_TALK_FONT.render('部署完成，准备战斗！', True, db.COLOR_RGB_BLACK, None)
SPT2 = [STAGE1_P2_TALK1,STAGE1_P2_TALK2,STAGE1_P2_TALK3,STAGE1_P2_TALK4,STAGE1_P2_TALK5,STAGE1_P2_TALK6,STAGE1_P2_TALK7]
#妈妈开战语录
STAGE2_P2_TALK1 = GAME_TALK_FONT.render('左键点击战场发射炮弹', True, db.COLOR_RGB_BLACK, None)
STAGE2_P2_TALK2 = GAME_TALK_FONT.render('命中敌船可以再射一炮', True, db.COLOR_RGB_BLACK, None)
STAGE2_P2_TALK3 = GAME_TALK_FONT.render('击毁敌船可获得强化炮弹', True, db.COLOR_RGB_BLACK, None)
STAGE2_P2_TALK4 = GAME_TALK_FONT.render('你妈我看不起逃兵', True, db.COLOR_RGB_BLACK, None)
SPT2F = [STAGE2_P2_TALK1,STAGE2_P2_TALK2,STAGE2_P2_TALK3,STAGE2_P2_TALK4]

#强化炮提示
HELP_FONT_pos = pygame.font.Font(DIR+'/msyh.TTF', 30)
HELP_TALK1 = HELP_FONT_pos.render('炮弹:单点型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK2 = HELP_FONT_pos.render('炮弹:横三型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK3 = HELP_FONT_pos.render('炮弹:竖三型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK4 = HELP_FONT_pos.render('炮弹:交叉五型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK5 = HELP_FONT_pos.render('炮弹:横五型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK6 = HELP_FONT_pos.render('炮弹:竖五型', True, db.COLOR_RGB_BLACK, None)
HELP_TALK7 = HELP_FONT_pos.render('炮弹:九宫型', True, db.COLOR_RGB_BLACK, None)
HELPTS = [HELP_TALK1,HELP_TALK2,HELP_TALK3,HELP_TALK4,HELP_TALK5,HELP_TALK6,HELP_TALK7]

